package com.tuiyun.util;

import org.apache.shiro.crypto.hash.Sha256Hash;
import org.apache.shiro.util.ByteSource;

public class PWDUtil {

	public static String encryptPWD(String pwd){
		ByteSource bs = ByteSource.Util.bytes("jiaxiaotuiyunguanli");	
		String salt = bs.toHex();		
		return new Sha256Hash(pwd, salt, 1024).toBase64();
	}
}
